<?php

namespace html;

class parser extends core\abstractTagParser
{
	private $html;

	static function load($html)
	{
		$parser = new self();
		$parser->setTagClass('html\tag');
		$parser->create($html);
		return $parser;
	}

	public function create($data){
		if(file_exists($data)){
			$data = file_get_contents($data);
		}
		$this->html = $data;
		parent::create($data);
	}

	public function getHtml(){
		return $this->html;
	}

}

?>
